/*
 * Copyright (c) 2015, 张涛.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http//www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.taiyuan.tongcheng.application;

import org.kymjs.kjframe.bitmap.BitmapConfig;
import org.kymjs.kjframe.http.HttpConfig;
import org.kymjs.kjframe.utils.KJLoger;

import cn.jpush.android.api.JPushInterface;

import com.baidu.mapapi.SDKInitializer;
import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.WXAPIFactory;

import android.app.Application;
import android.os.Build;

/**
 * 
* @Description TODO
* @author wzq
* @date 2015-8-10 下午11855
* @update (date)
* @version V1.0
 */
public class AppContext extends Application {
    public static int screenW;
    public static int screenH;

    @Override
	public void onCreate() {
		super.onCreate();
		BitmapConfig.CACHEPATH = AppConfig.imgCachePath;
		HttpConfig.CACHEPATH = AppConfig.httpCachePath;
		CrashReport
				.initCrashReport(getApplicationContext(), "900009125", false);
		// CrashHandler.create(this);
		// 在使用 SDK 各组间之前初始化 context 信息，传入 ApplicationContext
		SDKInitializer.initialize(this);
		// ====激光初始化
		JPushInterface.setDebugMode(true); // 设置开启日志,发布时请关闭日志
		JPushInterface.init(this); // 初始化 JPush
		KJLoger.IS_DEBUG = true;
	}
     
    
    
    
}
